package com.neu.edu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 *  Session共享问题：
 *      1、不能跨不同域名共享
 *      2、同一个服务，复制多份，session不同步问题   解决方法：session复制、客户端存储、hash一致性、统一存储
 */

@EnableRedisHttpSession  // 整合redis作为session存储
@EnableFeignClients(basePackages = "com.neu.edu.feign")
@EnableDiscoveryClient
@SpringBootApplication
public class GulimallAuthServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallAuthServerApplication.class);
    }
}
